package com.lzw.breezeNovel.WebAdmin.service;


import com.lzw.breezeNovel.WebAdmin.vo.BookVo;
import com.lzw.breezeNovel.WebAdmin.vo.StatisticsVo;
import com.lzw.breezeNovel.model.entity.pojo.novel.Book;
import com.lzw.breezeNovel.model.entity.query.PaginationResultQuery;
import com.lzw.breezeNovel.model.entity.query.Search;
import org.apache.ibatis.annotations.Param;

/**
 * 书籍服务类
 */
@SuppressWarnings("all")
public interface BookService {
    /**
     * 添加书籍
     */
    void addBook(Book book);

    /**
     * 分页查询书籍
     */
    PaginationResultQuery<BookVo> pageBook(Search book);

    /**
     * 删除书籍
     */
    void deleteBook(Integer id);

    /**
     * 批量删除书籍
     */
    void deleteBooks(Long[] ids);

    /**
     * 修改书籍
     */
    void updateBook(@Param("book") Book book);

    /**
     * 统计书籍
     */
    StatisticsVo countBook();

}
